/*
 * @Description: cookies.ts
 * @Version: 2.0
 * @Autor: lhl
 * @Date: 2021-06-20 20:39:08
 * @LastEditors: lhl
 * @LastEditTime: 2021-06-20 20:46:08
 */
import Cookies from 'js-cookie'

const languageKey = 'language'
// 语言处理
export const getLanguage = () => Cookies.get(languageKey)
export const setLanguage = (language: string) => Cookies.set(languageKey, language)
// token处理
export const getToken = () => Cookies.get('token')
export const setToken = (token: string) => Cookies.set('token', token)
export const removeToken = () => Cookies.remove('token')
